<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html">
        <h:form>
            <h:dataTable cellpadding="5px" cellspacing="16px" styleClass="allaroundborder" headerClass="allaroundborder" columnClasses="allaroundborder" 
                         rowClasses="allaroundborder" value="#{salesInquiryBean.salesInquiryList}" var="s">

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Sales Inquiry Id" />
                    </f:facet>
                    <h:outputText value="#{s.id}" />
                </h:column>    

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Issuance Date and Time" />
                    </f:facet>
                    <h:outputText value="#{s.dateTime}" />
                </h:column>    


                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Client ID" />
                    </f:facet>
                    <h:outputText value="#{s.client.id}" />
                </h:column>  

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Total Price" />
                    </f:facet>
                    <h:outputText value="#{s.totalPrice}" />
                </h:column> 

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Status of Sales Inquiry" />
                    </f:facet>
                    <h:outputText value="#{s.status}" />
                </h:column> 

            </h:dataTable>
            <h:commandButton action="index.xhtml" value="Return to index" />
        </h:form>
</ui:composition>
